package main;
import java.io.BufferedReader;
import java.io.DataInputStream;
import java.io.FileInputStream;
import java.io.InputStreamReader;
import java.util.ArrayList;
public class Stub {
	//private Format TraitFormat(Ligne);
	private String ligne;


	public static Format TraitFormat(Format res, String strLineIn){
		
		
		    	if (strLineIn.equals("300 00")){
		    		res=new Format(1);
		    		ArrayList<Integer> tab=new ArrayList<Integer>();
		    		tab.add(0);
		    		res.setTabOctetB10(tab)  ;
		    	
		    		return res;
		   
		    	}
		    
		    if (strLineIn.equals("301 0000")){
		    	res=new Format(2);
		    	
	    		ArrayList<Integer> tab=new ArrayList<Integer>();
	    		tab.add(0);
	    		res.setTabOctetB10(tab)  ;
	    	
	    		return res;
	    		
	    		}
		    if (strLineIn.equals("302 00 00")){
		    	res=new Format(3);
		    	
	    		ArrayList<Integer> tab=new ArrayList<Integer>();
	    		tab.add(0);
	    		res.setTabOctetB10(tab)  ;
	    	
	    		return res;
	    		
	    		}
		    res=new Format(4);
			return res;
			
		    }




}




